import React from 'react'
import IconFont from '@/components/IconFont'
import { MyRoutes } from '.'
import DefaultLayout from '@/Layout'
const Base = React.lazy(() => import('@/pages/base'))

const adminRoutes: MyRoutes[] = [
  {
    path: '/admin',
    name: '管理',
    component: DefaultLayout,
    routes: [
      {
        path: '/admin/base',
        name: '控制台',
        exact: true,
        icon: <IconFont type='icon-kongzhitai' />,
        component: Base,
        isShow: true,
      },
      {
        path: '/admin/dash',
        name: '主页',
        icon: <IconFont type='icon-icon_zhuye' />,
        isShow: true,
        routes: [
          {
            path: '/admin/dash/com',
            name: '表格数据展示',
            component: Base,
            isShow: true,
            exact: true,
            icon: <IconFont type='icon-yunyingduan-biaogezhanshi' />,
          },
        ],
      },
    ],
  },
]
export default adminRoutes
